package day5;

public class makemathod {
    private String xuexiao;
    private int number;

    public makemathod() {
        System.out.println("无参数方法执行了");
        System.out.println("=========================");
    }

    public makemathod(String xuexiao, int number) {
        System.out.println("有参数方法执行了");
        this.xuexiao = xuexiao;
        this.number = number;
    }

    public void setXuexiao(String xuexiao) {
        this.xuexiao = xuexiao;
    }

    public String getXuexiao() {
        return xuexiao;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getNumber() {
        return number;
    }
}
